<!--办事大厅档案查询结果-->
<template>
  <default-layout>
    <header-back text="查询结果" slot="header"></header-back>
    <div slot="main">
      <file-component :file-status="tempQuery.fileStatus" :record="tempQuery"></file-component>
    </div>
  </default-layout>
</template>
<script>

  import {mapGetters} from 'vuex'
  import HeaderBack from '../../../components/header-back/header-back.vue'
  import DefaultLayout from '../../../layouts/default-layout/default-layout'
  import FileComponent from '../../user/my-file/file-component'

  export default {
    components: {FileComponent, DefaultLayout, HeaderBack},
    computed: {
      ...mapGetters([
        'tempQuery'
      ])
    },
    data() {
      return {}
    },
    created() {
      if (!this.tempQuery) {
        this.$router.replace({name: 'query'})
      }
    }
  }
</script>
<style lang="scss" scoped>
  @import "../../../common/style/variable";
</style>
